/**
 * @param {ng.ITemplateCacheService} $templateCache
 */
export function dTemplateCache($templateCache) {
  $templateCache.put(
    "templateId.html",
    html`<a>This is the content of the template</a>`,
  );
}

export class testCtrl {
  static $inject = ["$templateCache", "$sce"];

  /**
   * @param {ng.ITemplateCacheService} $templateCache
   * @param {ng.ISCEService} $sce
   */
  constructor($templateCache, $sce) {
    const tpl = /** @type {string} */ ($templateCache.get("templateId.html"));
    const saveTpl = $sce.trustAsHtml(tpl);
    this.text = saveTpl;
  }
}
